//
//  MainLeftSlideViewController.m
//  QingBrushTopic
//
//  Created by Zheng on 2017/9/27.
//  Copyright © 2017年 Zheng. All rights reserved.
//

#import "MainLeftSlideViewController.h"
#import "BaseNavigationController.h"
#import "PersonalCenterViewController.h"

@interface MainLeftSlideViewController ()

@end

@implementation MainLeftSlideViewController

#pragma mark - 初始化方法
+ (instancetype)getInstance {
    UIViewController *ctrl1 = [[UIViewController alloc] init];
    ctrl1.view.backgroundColor = [UIColor whiteColor];
    
    return [super revealControllerWithFrontViewController:ctrl1 leftViewController:[MainLeftSlideViewController getLeftViewController]];
}

+ (id)getLeftViewController {
    PersonalCenterViewController *pcVC = [[PersonalCenterViewController alloc] init];
    BaseNavigationController *nav = [[BaseNavigationController alloc] initWithRootViewController:pcVC];
    return nav;
}



#pragma mark - 视图生命周期
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
